
#ifndef STATUSBOARD_H
#define STATUSBOARD_H

#include <BThread>
#include <BGroupBox>

using namespace BWE;

class StatusBoard : public BGroupBox
{
	BOBJECT(StatusBoard);
public:
	StatusBoard(BWidget* parent = 0);
	StatusBoard(const BString& title, BWidget* parent = 0);
	~StatusBoard();

	virtual bool setAsset(const BValue& asset);

	void setThread(BThread* thread);
	BThread* thread() const;

protected:
	void slotScriptPerformed(BObject* object, const BValue& value);

protected:
	virtual void updateEvent(const BEvent& event);

	virtual void freshEvent(const BEvent& event);
	virtual void paintEvent(const BEvent& event);

private:
	int				_counter;
	BThreadHolder	_thread;
};
#endif
